/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evosoft.util;

import com.evosoft.model.Persona;

/**
 *
 * @author david
 */
public class Sesion {
    
    private static Sesion instance;
    private Persona personaEnSesion;
    
    
    private Sesion() {
    }

    public synchronized static Sesion getInstance() {
        if (instance == null) {
            instance = new Sesion();
        }

        return instance;
    }
    
    
    public Persona getPersonaEnSesion() {
        return personaEnSesion;
    }
    
    public void setPersonaEnSesion(Persona persona) {
        this.personaEnSesion = persona;
    }
}
